from twisted.internet.defer import Deferred

def myErrCallback(failure):
    print failure

d = Deferred()
d.addErrback(myErrCallback)

#ypeError: Strings are not supported by Failure
d.errback("Triggering errback.")
